<template>
	<view class="goods-select-bar uni-bg-color">
		<view class="goods-bar uni-border-color">
			<image src="../../static/images/tem/gloos.jpg" class="goods-img uni-border-color"></image>
			<view class="goods-info">
				<view class="uni-text-color-active uni-font-size-lg">￥50.00</view>
				<view class="uni-font-size-sm uni-text-color-grey">库存520</view>
			</view>
		</view>
		<view class="goods-column">
			<view class="goods-column-h1 uni-font-size-base uni-text-color-grey">尺码</view>
			<view class="goods-column-list uni-font-size-sm">
				<view class="goods-column-item active">35</view>
				<view class="goods-column-item">35</view>
			</view>
		</view>
		<view class="goods-column">
			<view class="goods-column-h1 uni-font-size-base uni-text-color-grey">数量</view>
			<view class="goods-column-num"><stepper-bar></stepper-bar></view>
		</view>
		<buttom-bar title='确定' :border='false' :round='false' :height="80" color="#fff" background="#1296db" @click="onButtom"></buttom-bar>	
	</view>
</template>

<script>
	export default {
		name: 'GoodsSelect',
		title: '商品规格选择',
		methods: {
			onButtom() {
				console.log(55)
			}
		},
		data() {
			return {
				
			};
		},
		mounted() {
		},
	}
</script>

<style lang="scss" scoped>
	@import '@/uni.scss';
	.goods-select-bar{
		width: 100%;
		.goods-bar{
			width: 100%;
			border-bottom: solid 2upx $uni-border-color;
			padding: 20upx 30upx;
			display: flex;
			box-sizing: border-box;
			.goods-img{
				width: 150upx;
				height: 150upx;
				border: solid 2upx $uni-border-color;
			}
			.goods-info{
				padding-left: 20upx;
				flex: 1;
			}
		}
		.goods-column{
			width: 100%;
			padding: 0 30upx;
			box-sizing: border-box;
			border-bottom: solid 2upx $uni-border-color;
			.goods-column-h1{
				height: 80upx;
				line-height: 80upx;
			}
			.goods-column-num{
				width: 200upx;
				margin-bottom: 20upx;
			}
			.goods-column-list{
				padding: 20upx 0;
				display: flex;
				align-items: center;
				flex-wrap: wrap;
				.goods-column-item{
					height: 50upx;
					line-height: 50upx;
					padding: 0 30upx;
					border-radius: 10upx;
					text-align: center;
					background: $uni-bg-color-grey;
					margin-right: 20upx;
					&.active{
						border: solid 2upx $uni-bg-color-blue;
						background: $uni-bg-color;
					}
				}
			}
		}
		.buttom-bar-bg{
			background: $uni-bg-color-blue;
		}
	}

</style>
